<?php


namespace app\model;


use think\Model;

class LoginLog extends Model
{

    public static function add($user_id,$ip,$type){
        self::insert(['user_id'=>$user_id,'ip'=>$ip,'type'=>$type]);
        return true;
    }
}